{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">系统日志</li>
            <!--<li class=""><a href="{:url('admin/user/add')}">添加用户</a></li>-->
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <form class="layui-form layui-form-pane" action="{:url('admin/system_log/adminOpeaIndex')}" method="get">
                    <div class="layui-elem-quote  title-select">
                        <div>
                            <div class="layui-inline">
                                <label class="layui-form-label">关键词</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="keyword" value="{$keyword}" placeholder="请输入关键词" class="layui-input">
                                </div>
                            </div>

                        </div>
                        <ul>

                            <li>

                                <div class="layui-form-pane">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">范围选择</label>
                                        <div class="layui-input-inline">
                                            <input class="layui-input" placeholder="开始日" id="LAY_demorange_s" name="star_time" value="{$star_time}">
                                        </div>
                                        <div class="layui-input-inline">
                                            <input class="layui-input" placeholder="截止日" id="LAY_demorange_e" name="end_time" value="{$end_time}">
                                        </div>
                                    </div>
                                </div>

                            </li>


                        </ul>

                            <button class="layui-btn">搜索</button>

                    </div>

                </form>
                <hr>

                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>操作人</th>
                        <th>操作时间</th>
                        <th>ip</th>
                        <th>操作内容</th>

                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="system_list" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.username}</td>
                        <td>{$vo.create_time}</td>
                        <td>{$vo.user_ip}</td>
                        <td>{$vo.operation}</td>

                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--分页-->
                {$system_list->render()}
            </div>
        </div>
    </div>
</div>
{/block}